import request from '@/utils/request'

// 查询微信公众号矩阵列表
export function listMatrix(query) {
  return request({
    url: '/allocation/matrix/list',
    method: 'get',
    params: query
  })
}

// 查询微信公众号矩阵详细
export function getMatrix(id) {
  return request({
    url: '/allocation/matrix/' + id,
    method: 'get'
  })
}

// 新增微信公众号矩阵
export function addMatrix(data) {
  return request({
    url: '/allocation/matrix',
    method: 'post',
    data: data
  })
}

// 修改微信公众号矩阵
export function updateMatrix(data) {
  return request({
    url: '/allocation/matrix',
    method: 'put',
    data: data
  })
}

// 删除微信公众号矩阵
export function delMatrix(id) {
  return request({
    url: '/allocation/matrix/' + id,
    method: 'delete'
  })
}
